<template>
	<view class="">
		<view v-for="item in list" class="recomennd" @click="detail(item)">
			<view class="rec">
				<view class="title">
					<image v-if="item.vip" class="vip" src="https://tb.wuyouzhuan888.com/applet-icon/vip.png" mode="">
					</image>
					<view v-else class="line1">

					</view>
					{{item.atlasName}}
				</view>
				<view v-if="type!='histroy'" class="more">
					More
					<image class="img" src="https://tb.wuyouzhuan888.com/applet-icon/more.png" mode="">
					</image>
				</view>
			</view>
			<view class="list">
				<view class="item" v-for="picItem in item.resourcesList">
					<image v-if="item.type == 'mobile'" class="img" :src="picItem.url" mode=""></image>
					<image v-else-if="item.type == 'pc'" class="img" :src="picItem.url" mode=""></image>
					<view v-else-if="item.type == 'trends'" class="img_box">
						<image class="img" :src="picItem.url + '?ci-process=snapshot&time=0&format=jpg'" mode="">
							<image class="bf" src="https://tb.wuyouzhuan888.com/applet-icon/bofang1.svg"> </image>
						</image>
					</view>
					<image v-else class="img" :src="picItem.url" mode=""></image>
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		props: {
			list: {},
		},
		data() {
			return {

			}
		},
		methods: {
			detail(item) {
				const parameter = "?atlasId=" + item.atlasId + "&atlasName=" + item.atlasName

				if (item.type == 'mobile') {
					uni.navigateTo({
						url: "/pages/sys/cate_bags/mobilemore" + parameter
					})
				} else if (item.type == 'pc') {
					uni.navigateTo({
						url: "/pages/sys/cate_bags/pcmore" + parameter
					})
				} else if (item.type == 'trends') {
					uni.navigateTo({
						url: "/pages/sys/cate_bags/trendsmore" + parameter
					})
				} else {
					uni.navigateTo({
						url: "/pages/sys/cate_bags/biaoqingmore" + parameter
					})
				}

			}
		}
	}
</script>

<style scoped lang="scss">
	.recomennd {

		margin: 35rpx 32rpx 24rpx;

		.list {
			display: flex;
			align-items: center;

			.item {
				width: 161rpx;
				height: 161rpx;
				border-radius: 20rpx;
				margin-right: 14rpx;

				&:last-child {
					margin-right: 0;
				}

				.img {
					width: 161rpx;
					height: 161rpx;
					border-radius: 20rpx;
				}

				.img_box {
					position: relative;

					.bf {
						position: absolute;
						width: 55rpx;
						height: 55rpx;
						left: 50%;
						transform: translate(-50%, -50%);
						top: 50%;
					}

				}

			}
		}



		.rec {
			// padding: 50rpx 0 24rpx 0;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 27rpx;

			.title {

				font-size: 25rpx;
				font-family: PingFang HK-Light, PingFang HK;
				font-weight: 300;
				color: #FFFFFF;
				display: flex;
				align-items: center;

				.vip {
					width: 60rpx;
					height: 34rpx;
					margin-right: 10rpx;
				}

				.line1 {
					margin-right: 10rpx;
					height: 24rpx;
					width: 5rpx;
					background: linear-gradient(to bottom, #05FAFE, #EF44C4);
					border-radius: 12rpx;
				}
			}

			.more {
				font-size: 27rpx;
				font-family: PingFang HK-Light, PingFang HK;
				font-weight: 300;
				color: #FFFFFF;
				line-height: 32rpx;
				display: flex;
				align-items: center;

				.img {
					width: 9rpx;
					height: 15rpx;
					margin-left: 10rpx;
				}
			}
		}


	}
</style>